@import '../../common/css/common.css';

.navigation {
    position: absolute;
    width: 100%;
    height: 300px;
    background: linear-gradient(90deg, rgb(230, 255, 240), rgb(245, 255, 250));
    align-items: center;
    border-radius: 40px 40px 0 0;/* 添加圆角边框 */
    border-bottom-width: 5px;
    border-bottom-color: rgb(245, 255, 250);
    z-index: 100;
}

.navigation search {
    top: 30px;
    width: 90%;
    border-color: rgb(145, 200, 155);
    border-style: solid;
    border-width: 5px;
}

.root-category {
    top: 45px;
    width: 100%;
    height: 160px;
}

.root-category list {
    flex-direction: row;
    padding-right: 60px;

}

.root-category list-item {
    margin: 0 3%;
    justify-content: center;
    align-items: center;

}


.root-category .item {
    text-align: center;
    align-items: center;
}


.root-category .item>image {
    height: 100px;
    width: 100px;
    border-radius: 40px;/* 添加圆角边框 */
}

.root-category .item>text {
    top: 10px;
}

.root-category .in-active{
    background-color: red;
}

.root-category-in-active-image{
    border-width: 5px;
    border-color: rgb(75, 195, 100);
}

.root-category-in-active-text{
    background-color: rgb(75, 195, 100);
    color: white;
    border-radius: 100px;
    padding: 5px;
}

.root-category .more {
    position: absolute;
    right: 0px;
    background-color: rgb(245, 255, 250);
    width: 60px;
    height: 100%;
}

.root-category .more>text {
    top: 30px;
    left: 16px;
    font-size: 30px;
    width: 30px;
}

.root-category .more>image {
    height: 45px;
    width: 45px;
    left: 7px;
    top: 40px;
}


.root-category .unfold {
    width: 100%;
    height: 100%;
}

.root-category .unfold .title {
    width: 100%;
    height: 160px;
    align-items: center;
    text-align: center;
}

.root-category .unfold .title>text {
    font-size: 36px;
    left: 60px;
    top: 12px;
}

.root-category .unfold .title .button {
    position: absolute;
    right: 0px;
    background-color: rgb(245, 255, 250);
    width: 60px;
    height: 100%;
}

.root-category .unfold .title .button>text {
    top: 30px;
    left: 16px;
    font-size: 30px;
    width: 30px;
}

.root-category .unfold .title .button>image {
    height: 45px;
    width: 45px;
    left: 7px;
    top: 40px;
}

.root-category .unfold .all-categorized {
    margin: 0 2%;
    height: 100%;
    top: 35px;
    display: flex;
    flex-wrap: wrap;
}

.root-category .unfold .all-categorized .item {
    margin: 16px 16px;
}
.root-category .unfold .all-categorized .item text{
    font-size: 26px;
}

.main {
    top: 300px;
    height: 100%;
    background-color: rgb(253, 253, 253);
    width: 100%;
    bottom: 60px;
}

.main .sub-category{
    position: absolute;
    width: 160px;
    left: 0px;
    background-color: rgb(245, 245, 245);
}

.main .sub-category list-item{
    padding: 40px 0;
    justify-content: center;
}

.main .sub-category list-item image{
    width: 35px;
}


.main .core{
    left: 160px;
    border-radius: 40px;/* 添加圆角边框 */
}

.main .core .sort{
    width: 550px;
    height: 60px;
}

.main .core .sort .price{
    top: 10px;
    left: 60px;
}

.main .core .sort .discount{
    top: 10px;
    left: 180px;
}
.main .core .sort text{
    width: 70px;
}

.main .core .sort image{
    width: 40px;
    height: 40px;
}

.main .core .goods{
    width: 100%;
    height: 100%;
}

.main .core .goods .item{
    width: 560px;
    height: 300px;
    border-bottom-width: 3px;
    border-bottom-color: rgb(247, 247, 247);
    padding: 20px;
    align-items: center;
}
.main .core .goods .item>image{
    width: 220px;
    height: 220px;
    border-radius: 40px;/* 添加圆角边框 */
}
.main .core .goods .item>.content{
    left: 15px;
    width: 300px;
    height: 100%;
}

.main .core .goods .item>.content>.title{
    font-size: 32px;
    font-weight: 500;
}

.main .core .goods .item>.content>.subtitle{
    top: 8px;
    font-size: 30px;
    color: rgb(162, 162, 162);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.main .core .goods .item>.content>div{
    position:absolute;
    bottom: 15px;
    width: 100%;
}

.main .core .goods .item>.content .newPrice{
    color: red;
    font-size: 40px;
}

.main .core .goods .item>.content .oldPrice{
    font-size: 26px;
    text-decoration: line-through;
    color: grey;
    top: 5px;
}

.main .core .goods .item>.content .add{
    position:absolute;
    text-align: center;
    align-items: center;
    justify-content: center;
    background-color: rgb(30, 195, 100);
    height: 60px;
    width: 60px;
    border-radius: 60px;/* 添加圆角边框 */
    color: white;
    left: 220px;
}
.main .core .goods .item>.content .add>text{
    font-size: 35px;
    font-weight: bold;
    font-size: 50px;
}
.sub-category .in-active{
    background-color: white;
}